import { createApp } from 'vue'
import App from './App.vue'
import { setupPinia } from '@/store'
import router from '@/router'
import 'virtual:svg-icons-register'
import 'assets/scss/global.scss'
import { setupGlobalComp } from '@/globalComp'
import { globalErrorHandler } from 'utils/GlobalErrorHandlerUtil'

const app = createApp(App)
app.config.errorHandler = globalErrorHandler
setupPinia(app)
app.use(router)
setupGlobalComp(app)
app.mount('#app')
